import VueRouter from 'vue-router'

 // 导入对应的路由组件
 import home from './components/tabBar/home.vue'
 import member from './components/tabBar/member.vue'
 import search from './components/tabBar/search.vue'
 import shop from './components/tabBar/shop.vue'

// 3. 创建路由对象
var router = new VueRouter({

  routes: [
     {path:'/',redirect:home},
     {path:'/home',component:home},
     {path:'/member',component:member},
     {path:'/search',component:search},
     {path:'/shop',component:shop}
  ],
  linkActiveClass:'mui-active'  //覆盖默认的路由高亮的类
})

// 把路由对象暴露出去
export default router